package com.jtcoding.chat.service;

import com.jtcoding.chat.model.Friend;
import com.jtcoding.chat.model.FriendRequest;
import com.jtcoding.chat.model.User;

import java.util.List;

/**
 * @author jason.tang
 * @create 2019-01-31 17:26
 * @description
 */
public interface FriendService {
    public static final String FRIEND_STATUS_NOR = "NOR";
    public static final String FRIEND_STATUS_BLT = "BLT";
    public static final String FRIEND_STATUS_DEL = "DEL";
    public static final String FRIEND_STATUS_BDE = "BDE";

    public static final String FRIEND_REQUEST_STATUS_PND = "PND";
    public static final String FRIEND_REQUEST_STATUS_REJ = "REJ";
    public static final String FRIEND_REQUEST_STATUS_APV = "APV";

    List<User> getFriendListByUserNum(Integer userNum);

    List<User> searchUser(String keyword);

    Boolean addFriendRequest(FriendRequest friendRequest);

    List<User> getUserByFriendReq(Integer userNum);

    User acceptFriendRequest(FriendRequest friendRequest);

    Boolean rejectFriendRequest(FriendRequest friendRequest);
}
